翻訳と辞書
Words near each other
・ Hungarian National Gallery
・ Hungarian National Independence Party
・ Hungarian National Museum
・ Hungarian National Party (Czechoslovakia)
・ Hungarian National Pentathlon Championship 1946
・ Hungarian National Philharmonic
・ Hungarian National Socialist Agricultural Labourers' and Workers' Party
・ Hungarian National Socialist Party
・ Hungarian nationalism
・ Hungarian nationality law
・ Hungarian NATO membership referendum, 1997
・ Hungarian Natural History Museum
・ Hungarian neopaganism
・ Hungarian New Zealander
・ Hungarian nobility
Hungarian notation
・ Hungarian noun phrase
・ Hungarian occupation of Vidin
・ Hungarian occupation of Yugoslav territories
・ Hungarian Ohioans
・ Hungarian Olympic Committee
・ Hungarian Open
・ Hungarian Open (table hockey)
・ Hungarian opera
・ Hungarian Opera Day
・ Hungarian Operations Research Society
・ Hungarian order of battle in 1939
・ Hungarian Ornithological and Nature Conservation Society
・ Hungarian orthography
・ Hungarian Parliament Building


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Hungarian notation : ウィキペディア英語版
Hungarian notation
Hungarian notation is an identifier naming convention in computer programming, in which the name of a variable or function indicates its type or intended use. There are two types of Hungarian notation: Systems Hungarian notation and Apps Hungarian notation.
Hungarian notation was designed to be language-independent, and found its first major use with the BCPL programming language. Because BCPL has no data types other than the machine word, nothing in the language itself helps a programmer remember variables' types. Hungarian notation aims to remedy this by providing the programmer with explicit knowledge of each variable's data type.
In Hungarian notation, a variable name starts with a group of lower-case letters which are mnemonics for the type or purpose of that variable, followed by whatever name the programmer has chosen; this last part is sometimes distinguished as the ''given name''. The first character of the given name can be capitalized to separate it from the type indicators (see also CamelCase). Otherwise the case of this character denotes scope.
==History==
The original Hungarian notation, which would now be called Apps Hungarian, was invented by Charles Simonyi, a programmer who worked at Xerox PARC circa 1972–1981, and who later became Chief Architect at Microsoft. It may have been derived from the earlier principle of using the first letter of a variable name to set its type — for example, variables whose names started with letters I through N in FORTRAN are integers by default.
The notation is a reference to Simonyi's nation of origin; Hungarian people's names are "reversed" compared to most other European names; the family name precedes the given name. For example, the anglicized name "Charles Simonyi" in Hungarian was originally "Simonyi Charles" (Simonyi Károly in Hungarian). In the same way the type name precedes the "given name" in Hungarian notation rather than the more natural, to most Europeans, Smalltalk "type last" naming style e.g. aPoint and lastPoint. This latter naming style was most common at Xerox PARC during Simonyi's tenure there.
The name Apps Hungarian was coined since the convention was used in the applications division of Microsoft. Systems Hungarian developed later in the Microsoft Windows development team. Simonyi's paper referred to prefixes used to indicate the "type" of information being stored. His proposal was largely concerned with decorating identifier names based upon the semantic information of what they store (in other words, the variable's ''purpose''), consistent with Apps Hungarian. However, his suggestions were not entirely distinct from what became known as Systems Hungarian, as some of his suggested prefixes contain little or no semantic information (see below for examples).
The term ''Hungarian notation'' is memorable for many people because the strings of unpronounceable consonants vaguely resemble the consonant-rich orthography of some Eastern European languages despite the fact that Hungarian is a Uralic language, and unlike Slavic languages is rather rich in vowels. The zero-terminated string prefix "sz" is also a letter in the Hungarian alphabet.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Hungarian notation」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.